/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.celiosilva.simbanc.teste;

import com.celiosilva.simbanc.util.Sorteador;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;

/**
 *
 * @author celio@celiosilva.com
 */
public class MathTest {

    private static final            Logger                  log             = Logger.getLogger(MathTest.class);

    public static void main(String... args){
        /*for (int i = 0; i < 40; i++)
        log.debug((int)(Math.random() * 10));*/
        Map<String,Carro> map = new HashMap<String,Carro>();
        for (Map.Entry<String, Carro> entry:map.entrySet()){
            
        }

        for (int i = 0; i < 10000; i ++){
        String[] participantes = new String[]{"sinesio","sandra","fatima","anisio","miltom","joao","carmem"};
        Sorteador<String> sorteador = new Sorteador<String>(participantes);
        sorteador.sortear(1);
        while (sorteador.hasContemplado())
            log.debug("Contemplado é :" + sorteador.getProximoContemplado());
        }

    }

}
